package com.bidevalution.business.impl;

import com.bidevalution.business.service.BeReplyTitleService;


import com.bidevalution.dao.entity.BeReplyTitle;
import com.bidevalution.dao.mapper.BeReplyTitleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: xiayf
 * @date: 2019-06-11 11:58
 * 答辩题目信息业务层接口实现类
 */
@Service
public class BeReplyTitleServiceeImpl implements BeReplyTitleService {
    @Autowired
    private BeReplyTitleMapper beReplyTitleMapper;

    @Override
    public boolean insertBeReplyTitle(BeReplyTitle beReplyTitle) throws Exception {
        
        if (beReplyTitleMapper.insertBeReplyTitle(beReplyTitle) > 0) {
            return true;
        }
        return false;
    }

    @Override
    public boolean updateByReplyTitleIdSelective(BeReplyTitle beReplyTitle) throws Exception {
        
        if (beReplyTitleMapper.updateByReplyTitleIdSelective(beReplyTitle) > 0) {
            return true;
        }
        return false;
    }

    @Override
    public BeReplyTitle selectBySectionId(String sectionId) throws Exception {
        
        return beReplyTitleMapper.selectBySectionId(sectionId);
    }
    @Override
    public BeReplyTitle selectByPrimaryKey(String replyId) throws Exception {
        
        return beReplyTitleMapper.selectByPrimaryKey(replyId);
    }
}
